//
//  NSDateFormatter+QTAdd.m
//  QTCategory
//
//  Created by 张俊博 on 2017/4/12.
//  Copyright © 2017年 CISDI. All rights reserved.
//

#import "NSDateFormatter+QTAdd.h"
#import "NSUserDefaults+QTAdd.h"

@implementation NSDateFormatter (QTAdd)

+ (NSDateFormatter *)localFormatter
{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:[NSUserDefaults isCurLanguageZh_cn]?@"zh-Hans-CN":@"en"]];
    return formatter;
}

@end
